﻿using FM_Mono;
using UnityEngine;

[IgnoreGen]
[ExecuteInEditMode]
public class RendererLightmapParamSetter :MonoBehaviour
{
	public Renderer targetRenderer;

	public int lightmapIndex;

	public Vector4 lightmapParam;

	void Start()
	{
		if (targetRenderer != null)
		{
			targetRenderer.lightmapIndex = lightmapIndex;
			targetRenderer.lightmapScaleOffset = lightmapParam;
		}
	}

	void OnEnable()
	{
		Start ();
	}
}
